package com.system.manager.modules.projectLibrary.mapper;

import com.system.manager.modules.projectLibrary.dto.UsernamePassword;
import com.system.manager.modules.projectLibrary.entity.ProjectLeader;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jisf
 * @since 2021-11-03
 */
public interface ProjectLeaderMapper extends BaseMapper<ProjectLeader> {

    /**
     * TODO 根据项目负责人id查询用户名和密码
     * @param id
     * @return
     */
    UsernamePassword selectUsernamePasswordById(Integer id);

    /**
     * TODO 根据项目负责人的username查询id
     * @param username
     * @return
     */
    Integer selectIdByUsername(String username);

}
